home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / Implementation / OpenDocSetup / SIZERC.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-13  |  1.6 KB  |  84 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        SIZERC.h
  3.  
  4.     Contains:    xxx put contents here xxx
  5.  
  6.     Owned by:    Nick Pilch
  7.  
  8.     Copyright:    © 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <2>     6/23/96    NP        10002: Launch time speedups.
  13.          <1>     6/21/96    NP        first checked in
  14.  
  15.     To Do:
  16. */
  17.  
  18. /*
  19. ** SizeRC.h
  20. ** (c) 1996 Apple Computer All Rights Reserved
  21. **
  22. ** Data structures for handling the Finder 'SIZE' resource.
  23. **
  24. */
  25.  
  26. #ifndef SIZERC_H
  27. #define SIZERC_H
  28.  
  29. #ifndef __TYPES__
  30. #include <Types.h>
  31. #endif
  32.  
  33. #ifndef __MEMORY__
  34. #include <Memory.h>
  35. #endif
  36.  
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40.  
  41. #if PRAGMA_ALIGN_SUPPORTED
  42. #pragma options align=mac68k
  43. #endif
  44.  
  45. #if PRAGMA_IMPORT_SUPPORTED
  46. #pragma import on
  47. #endif
  48.  
  49. enum {
  50.     kOriginalSIZEResourceID =    -1,            /* Created by developer to hold "Factory Defaults" */
  51.     kMaximumSIZEResourceID =    0,            /* Holds custom max size, default min size */
  52.     kMinimumSIZEResourceID =    1            /* Holds custom max size, custom min size */
  53. };
  54.  
  55. typedef struct {
  56.  
  57.     unsigned short    flags;                    /* Stationery Aware, etc. */
  58.     unsigned long    preferredMemorySize;    /* Set by user */
  59.     unsigned long    minimumMemorySize;        /* Set by developer */
  60.  
  61. } SIZEResourceRec, **SIZEResourceHandle;
  62.  
  63.  
  64. OSErr GetOriginalSize (short resFile, Size& minimum, Size& maximum);
  65. OSErr GetCustomSize (short resFile, Size& minimum, Size& maximum);
  66. OSErr SetCustomSize (short resFile, Size minimum, Size maximum);
  67. SIZEResourceHandle    GetSIZEResource (short resFile, short id);
  68.  
  69. #if PRAGMA_IMPORT_SUPPORTED
  70. #pragma import off
  71. #endif
  72.  
  73. #if PRAGMA_ALIGN_SUPPORTED
  74. #pragma options align=reset
  75. #endif
  76.  
  77. #ifdef __cplusplus
  78. }
  79. #endif
  80.  
  81.  
  82. #endif
  83.  
  84.